<?php
namespace app\admin\validate;
use think\Validate;
class User extends Validate{
    protected $rule=[
        'uname'=>'require|max:10',
        'pw' => 'require',
        'captcha'=>'require|captcha'
    ];
    protected $message = [
        'uname.require'  =>  '用户名不得为空',
        'uname.max' =>  '用户名最多不能超过10个字符',
        'pw.require' =>  '用户密码不得为空',
    ];
}
?>